package ru.spb.bragnikita.myevents.ibatis.mappers;

import org.apache.ibatis.annotations.Param;
import ru.spb.bragnikita.myevents.ibatis.domain.Author;

import java.util.List;
import java.util.Map;

/**
 * @author Nikita.Brazhnikov
 */
public interface AuthorMapper {

	Author getAuthor(int id);

	List<Author> getAuthors();

	List<Author> getAuthorsWithParams(@Param("firstName")String first, @Param("lastName")String last);

	List<Author> getAuthorsWithHashMap(Map<String, String> params);

	void insertAuthor(Author author);


}
